package core;

import java.util.LinkedList;
import java.util.List;

import com.google.gdata.data.docs.DocumentListEntry;

public class Directory extends File {

	private List<File> _childern = null;

	public Directory(Directory parentDirectory, DocumentListEntry documentListEntry) {
		super(parentDirectory, documentListEntry);
		this._childern = new LinkedList<File>();
	}

	public void addChild(File child) {
		this._childern.add(child);
	}

	/* TODO: unmodified collection */
	public List<File> getChildern() {
		return this._childern;
	}

	@Override
	public boolean isFile() {
		return false;
	}

	@Override
	public boolean isDirectory() {
		return true;
	}
}
